const {
    merge
} = require('webpack-merge')
const commonConfig = require('./webpack.config')
const {resolve} = require('./utils')

/**@type {import('webpack').Configuration} */
module.exports = merge(commonConfig, {
    mode: 'production',
    // entry:{
    //     vendor: ['vue','element-plus']
    // },
    output: {
        clean: true,
    },
    // devtool: 'source-map',
    optimization: {
        splitChunks: {
          chunks: 'all',
        },
      },
})